<?php

include'../Classes/db.php';
include'../Classes/paymentHandler.php';

$regno=$_GET['regno'];
$pid=$_GET['pid'];
$subgr=$_GET['subgr'];

$x=new DbConnect();
$con=$x->getConnection();

$pay=new PaymentHandler();
$pay->setRegno($regno);
$pay->setSubgr($subgr);
$pay->setConnect($con); 
$result=$pay->paymentUpdate($pid);
echo $result;

?>